/****************************************************************
 *
 * Ashenvale game room server start entry.
 *
 ***************************************************************/
#include "log.h"
#include "server.h"
#include <boost/system/error_code.hpp>

int main(int argc, char **argv)
{
    Log::init(Log::DES_CONSOLE | Log::DES_FILE);

    LOG_TRACE() << "Ashenvale game room server.";

    Server::Ptr svr = Server::get();

    if(!svr){
        LOG_ERROR() << "Create server instance: "
                    << strerror(boost::system::errc::not_enough_memory);

        return -1;
    }

    return svr->start(argc, argv);
}
